import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  optimizeDeps: {
    include: ['@jm_405/to_do_list']
  },
  resolve: {
    alias: {
      '@jm_405/to_do_list': path.resolve(__dirname, 'node_modules/@jm_405/to_do_list/src/components/TodoList.vue'),
      '@components': path.resolve(__dirname, 'src/components')
    }
  }
})
